package com.sdb.docter.service.impl;

import com.sdb.docter.domain.Schedule;
import com.sdb.docter.mapper.ScheduleMapper;
import com.sdb.docter.service.ScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ScheduleServiceImpl implements ScheduleService {
    @Autowired
    private ScheduleMapper scheduleMapper;

    @Override
    public List<Schedule> selectScheduleList(Schedule schedule) {
        return scheduleMapper.selectScheduleList(schedule);
    }

    @Override
    public int insertSchedule(Schedule schedule) {
        return scheduleMapper.insertSchedule(schedule);
    }

    @Override
    public int updateSchedule(Schedule schedule) {
        return scheduleMapper.updateSchedule(schedule);
    }

    @Override
    public int deleteScheduleByIds(Long[] ids) {
        return scheduleMapper.deleteScheduleByIds(ids);
    }
}
